import request from '@/router/axios'

export function addPay (obj) {
  return request({
    url: '/admin/pay/addPay',
    method: 'post',
    data: obj
  })
}

export function fetchList (obj) {
  return request({
    url: '/admin/client',
    method: 'post',
    data: obj
  })
}

export function downloadTemp (query) {
  return request({
    url: '/admin/pay/downloadFile',
    method: 'get',
    params: query
  })
}

export function delObj (id) {
  return request({
    url: '/admin/client/' + id,
    method: 'delete'
  })
}

export function putObj (obj) {
  return request({
    url: '/admin/client',
    method: 'put',
    data: obj
  })
}
